<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>Class Vec3d | HiAPI-C# 2025 </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="Class Vec3d | HiAPI-C# 2025 ">
      
      <meta name="description" content="Basic 3D point (or vector).">
      <link rel="icon" href="../img/HiAPI.favicon.ico">
      <link rel="stylesheet" href="../public/docfx.min.css">
      <link rel="stylesheet" href="../public/main.css">
      <meta name="docfx:navrel" content="../toc.html">
      <meta name="docfx:tocrel" content="toc.html">
      
      <meta name="docfx:rel" content="../">
      
      
      
      <meta name="loc:inThisArticle" content="In this article">
      <meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
      <meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
      <meta name="loc:tocFilter" content="Filter by title">
      <meta name="loc:nextArticle" content="Next">
      <meta name="loc:prevArticle" content="Previous">
      <meta name="loc:themeLight" content="Light">
      <meta name="loc:themeDark" content="Dark">
      <meta name="loc:themeAuto" content="Auto">
      <meta name="loc:changeTheme" content="Change theme">
      <meta name="loc:copy" content="Copy">
      <meta name="loc:downloadPdf" content="Download PDF">

      <script type="module" src="./../public/docfx.min.js"></script>

      <script>
        const theme = localStorage.getItem('theme') || 'auto'
        document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
      </script>

  </head>

  <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
    <header class="bg-body border-bottom">
      <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
        <div class="container-xxl flex-nowrap">
          <a class="navbar-brand" href="../index.html">
            <img id="logo" class="svg" src="../img/HiAPI.logo.png" alt="">
            
          </a>
          <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-three-dots"></i>
          </button>
          <div class="collapse navbar-collapse" id="navpanel">
            <div id="navbar">
              <form class="search" role="search" id="search">
                <i class="bi bi-search"></i>
                <input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
              </form>
            </div>
          </div>
        </div>
      </nav>
    </header>

    <main class="container-xxl">
      <div class="toc-offcanvas">
        <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
          <div class="offcanvas-header">
            <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
          </div>
          <div class="offcanvas-body">
            <nav class="toc" id="toc"></nav>
          </div>
        </div>
      </div>

      <div class="content">
        <div class="actionbar">
          <button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
            <i class="bi bi-list"></i>
          </button>

          <nav id="breadcrumb"></nav>
        </div>

        <article data-uid="Hi.Geom.Vec3d">



  <h1 id="Hi_Geom_Vec3d" data-uid="Hi.Geom.Vec3d" class="text-break">
Class Vec3d  
  </h1>

  <div class="facts text-secondary">
    <dl><dt>Namespace</dt><dd><a class="xref" href="Hi.html">Hi</a>.<a class="xref" href="Hi.Geom.html">Geom</a></dd></dl>
  <dl><dt>Assembly</dt><dd>HiGeom.dll</dd></dl>
  </div>

  <div class="markdown summary"><p>Basic 3D point (or vector).</p>
</div>
  <div class="markdown conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnoreExtraElements]
public class Vec3d : IEquatable&lt;Vec3d&gt;, IExpandToBox3d, IBinaryIo, IWriteBin, ICsvRowIo, IEqualityOperators&lt;Vec3d, Vec3d, bool&gt;, IAdditionOperators&lt;Vec3d, Vec3d, Vec3d&gt;, ISubtractionOperators&lt;Vec3d, Vec3d, Vec3d&gt;, IMultiplyOperators&lt;Vec3d, double, Vec3d&gt;, IMultiplyOperators&lt;Vec3d, Mat4d, Vec3d&gt;, IDivisionOperators&lt;Vec3d, double, Vec3d&gt;, IVec&lt;double&gt;, IFormattable</code></pre>
  </div>




  <dl class="typelist inheritance">
    <dt>Inheritance</dt>
    <dd>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
      <div><span class="xref">Vec3d</span></div>
    </dd>
  </dl>

  <dl class="typelist implements">
    <dt>Implements</dt>
    <dd>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>&gt;</div>
      <div><a class="xref" href="Hi.Geom.IExpandToBox3d.html">IExpandToBox3d</a></div>
      <div><a class="xref" href="Hi.Common.IBinaryIo.html">IBinaryIo</a></div>
      <div><a class="xref" href="Hi.Common.IWriteBin.html">IWriteBin</a></div>
      <div><a class="xref" href="Hi.Common.CsvUtils.ICsvRowIo.html">ICsvRowIo</a></div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.iequalityoperators-3">IEqualityOperators</a>&lt;<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>&gt;</div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.iadditionoperators-3">IAdditionOperators</a>&lt;<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>&gt;</div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.isubtractionoperators-3">ISubtractionOperators</a>&lt;<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>&gt;</div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.imultiplyoperators-3">IMultiplyOperators</a>&lt;<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>&gt;</div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.imultiplyoperators-3">IMultiplyOperators</a>&lt;<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a>, <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>&gt;</div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.idivisionoperators-3">IDivisionOperators</a>&lt;<a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>&gt;</div>
      <div><a class="xref" href="Hi.Geom.IVec-1.html">IVec</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformattable">IFormattable</a></div>
    </dd>
  </dl>


  <dl class="typelist inheritedMembers">
    <dt>Inherited Members</dt>
    <dd>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
    </div>
  </dd></dl>

  <dl class="typelist extensionMethods">
    <dt>Extension Methods</dt>
    <dd>
  <div>
      <a class="xref" href="Hi.Common.BinIoUtil.html#Hi_Common_BinIoUtil_ToBytes_Hi_Common_IWriteBin_">BinIoUtil.ToBytes(IWriteBin)</a>
  </div>
  <div>
      <a class="xref" href="Hi.Geom.GeomUtil.html#Hi_Geom_GeomUtil_ExpandToBox3d_Hi_Geom_IExpandToBox3d_Hi_Geom_Mat4d_Hi_Geom_Box3d_">GeomUtil.ExpandToBox3d(IExpandToBox3d, Mat4d, Box3d)</a>
  </div>
  <div>
      <a class="xref" href="Hi.Geom.GeomUtil.html#Hi_Geom_GeomUtil_GetBox3d_Hi_Geom_IExpandToBox3d_">GeomUtil.GetBox3d(IExpandToBox3d)</a>
  </div>
  <div>
      <a class="xref" href="Hi.Common.DuplicateUtil.html#Hi_Common_DuplicateUtil_TryDuplicate__1___0_System_Object___">DuplicateUtil.TryDuplicate&lt;TSelf&gt;(TSelf, params object[])</a>
  </div>
  <div>
      <a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__1___0_System_Action___0__">InvokeUtil.SelfInvoke&lt;TSrc&gt;(TSrc, Action&lt;TSrc&gt;)</a>
  </div>
  <div>
      <a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__2___0_System_Func___0___1__">InvokeUtil.SelfInvoke&lt;TSrc, TDst&gt;(TSrc, Func&lt;TSrc, TDst&gt;)</a>
  </div>
  <div>
      <a class="xref" href="Hi.Coloring.ColorUtil.html#Hi_Coloring_ColorUtil_GetGloomyColor_System_Object_System_Double_System_Double_">ColorUtil.GetGloomyColor(object, double, double)</a>
  </div>
  <div>
      <a class="xref" href="Hi.Common.NameUtil.html#Hi_Common_NameUtil_GetSelectionName_System_Object_">NameUtil.GetSelectionName(object)</a>
  </div>
  <div>
      <a class="xref" href="Hi.Common.StringUtil.html#Hi_Common_StringUtil_GetPropertyStringIfToStringNotOverloaded_System_Object_System_Boolean_System_Boolean_">StringUtil.GetPropertyStringIfToStringNotOverloaded(object, bool, bool)</a>
  </div>
  <div>
      <a class="xref" href="Hi.Parallels.LockUtil.html#Hi_Parallels_LockUtil_Lock_System_Object_">LockUtil.Lock(object)</a>
  </div>
  </dd></dl>





  <h2 class="section" id="constructors">Constructors
</h2>


  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor" data-uid="Hi.Geom.Vec3d.#ctor">
  Vec3d()
  
  </h3>

  <div class="markdown level1 summary"><p>Ctor.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d()</code></pre>
  </div>













  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_Hi_Geom_Polar3d_" data-uid="Hi.Geom.Vec3d.#ctor(Hi.Geom.Polar3d)">
  Vec3d(Polar3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Ctor.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(Polar3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Polar3d.html">Polar3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_Hi_Geom_Vec2d_System_Double_" data-uid="Hi.Geom.Vec3d.#ctor(Hi.Geom.Vec2d,System.Double)">
  Vec3d(Vec2d, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a> class from a 2D vector and z coordinate.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(Vec2d xy, double z)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>xy</code> <a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
    <dd><p>The 2D vector providing x and y coordinates.</p>
</dd>
    <dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>The z coordinate.</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.#ctor(Hi.Geom.Vec3d)">
  Vec3d(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Copy ctor.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(Vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_Hi_Native_vec3d_" data-uid="Hi.Geom.Vec3d.#ctor(Hi.Native.vec3d)">
  Vec3d(vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>ctor.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Native.vec3d.html">vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_Hi_Native_vec3f_" data-uid="Hi.Geom.Vec3d.#ctor(Hi.Native.vec3f)">
  Vec3d(vec3f)
  
  </h3>

  <div class="markdown level1 summary"><p>ctor.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(vec3f src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Native.vec3f.html">vec3f</a></dt>
    <dd><p>src</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_System_Collections_Generic_IEnumerable_System_Double__" data-uid="Hi.Geom.Vec3d.#ctor(System.Collections.Generic.IEnumerable{System.Double})">
  Vec3d(IEnumerable&lt;double&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>Creates a vector from an enumerable collection of three double values.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(IEnumerable&lt;double&gt; src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>Source collection containing three double values</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_System_Double_System_Double_System_Double_" data-uid="Hi.Geom.Vec3d.#ctor(System.Double,System.Double,System.Double)">
  Vec3d(double, double, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Ctor.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(double x, double y, double z)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>x</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>x</p>
</dd>
    <dt><code>y</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>y</p>
</dd>
    <dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>z</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_System_Func_System_Int32_System_Double__" data-uid="Hi.Geom.Vec3d.#ctor(System.Func{System.Int32,System.Double})">
  Vec3d(Func&lt;int, double&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>Creates a vector using a function that maps direction index to value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(Func&lt;int, double&gt; dirToValueFunc)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dirToValueFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>Function that takes direction index (0=X, 1=Y, 2=Z) and returns the corresponding value</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_System_IO_BinaryReader_" data-uid="Hi.Geom.Vec3d.#ctor(System.IO.BinaryReader)">
  Vec3d(BinaryReader)
  
  </h3>

  <div class="markdown level1 summary"><p>Ctor by bytes:
x = reader.ReadDouble();
y = reader.ReadDouble();
z = reader.ReadDouble();</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(BinaryReader reader)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>reader</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binaryreader">BinaryReader</a></dt>
    <dd><p>reader</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_System_Int32_System_Double_System_Double_System_Double_" data-uid="Hi.Geom.Vec3d.#ctor(System.Int32,System.Double,System.Double,System.Double)">
  Vec3d(int, double, double, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Ctor by direction offset.
Direction 0,1,2 indicate x,y,z respectively.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(int dir, double a, double b, double c)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>direction offset</p>
</dd>
    <dt><code>a</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>value at direction (0+dir)%3</p>
</dd>
    <dt><code>b</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>value at direction (1+dir)%3</p>
</dd>
    <dt><code>c</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>value at direction (2+dir)%3</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_System_String_" data-uid="Hi.Geom.Vec3d.#ctor(System.String)">
  Vec3d(string)
  
  </h3>

  <div class="markdown level1 summary"><p>Ctor by string. The format is (x,y,z).</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d(string src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>src</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d__ctor_" data-uid="Hi.Geom.Vec3d.#ctor*"></a>

  <h3 id="Hi_Geom_Vec3d__ctor_System_ValueTuple_System_Double_System_Double_System_Double__" data-uid="Hi.Geom.Vec3d.#ctor(System.ValueTuple{System.Double,System.Double,System.Double})">
  Vec3d((double, double, double))
  
  </h3>

  <div class="markdown level1 summary"><p>Ctor.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d((double, double, double) src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> (<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>)</dt>
    <dd><p>src</p>
</dd>
  </dl>












  <h2 class="section" id="fields">Fields
</h2>



  <h3 id="Hi_Geom_Vec3d_x" data-uid="Hi.Geom.Vec3d.x">
  x
  
  </h3>

  <div class="markdown level1 summary"><p>Value at x direction.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double x</code></pre>
  </div>




  <h4 class="section">Field Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd></dd>
  </dl>










  <h3 id="Hi_Geom_Vec3d_y" data-uid="Hi.Geom.Vec3d.y">
  y
  
  </h3>

  <div class="markdown level1 summary"><p>Value at y direction.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double y</code></pre>
  </div>




  <h4 class="section">Field Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd></dd>
  </dl>










  <h3 id="Hi_Geom_Vec3d_z" data-uid="Hi.Geom.Vec3d.z">
  z
  
  </h3>

  <div class="markdown level1 summary"><p>Value at z direction.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double z</code></pre>
  </div>




  <h4 class="section">Field Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd></dd>
  </dl>









  <h2 class="section" id="properties">Properties
</h2>


  <a id="Hi_Geom_Vec3d_AbsSum_" data-uid="Hi.Geom.Vec3d.AbsSum*"></a>

  <h3 id="Hi_Geom_Vec3d_AbsSum" data-uid="Hi.Geom.Vec3d.AbsSum">
  AbsSum
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public double AbsSum { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Sum of the abs {x,y,z}.
Which is Math.Abs(x) + Math.Abs(y) + Math.Abs(z).</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_AllOne_" data-uid="Hi.Geom.Vec3d.AllOne*"></a>

  <h3 id="Hi_Geom_Vec3d_AllOne" data-uid="Hi.Geom.Vec3d.AllOne">
  AllOne
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d AllOne { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Generate <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>(1, 1, 1).</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_CsvText_" data-uid="Hi.Geom.Vec3d.CsvText*"></a>

  <h3 id="Hi_Geom_Vec3d_CsvText" data-uid="Hi.Geom.Vec3d.CsvText">
  CsvText
  
  </h3>

  <div class="markdown level1 summary"><p>Csv text.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public string CsvText { get; set; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_CsvTitleText_" data-uid="Hi.Geom.Vec3d.CsvTitleText*"></a>

  <h3 id="Hi_Geom_Vec3d_CsvTitleText" data-uid="Hi.Geom.Vec3d.CsvTitleText">
  CsvTitleText
  
  </h3>

  <div class="markdown level1 summary"><p>Csv titles text.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public string CsvTitleText { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_ElementNum_" data-uid="Hi.Geom.Vec3d.ElementNum*"></a>

  <h3 id="Hi_Geom_Vec3d_ElementNum" data-uid="Hi.Geom.Vec3d.ElementNum">
  ElementNum
  
  </h3>

  <div class="markdown level1 summary"><p>Element number: 3 for (x,y,z).</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int ElementNum { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_IsAllFinite_" data-uid="Hi.Geom.Vec3d.IsAllFinite*"></a>

  <h3 id="Hi_Geom_Vec3d_IsAllFinite" data-uid="Hi.Geom.Vec3d.IsAllFinite">
  IsAllFinite
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public bool IsAllFinite { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>Is x,y,z all finite.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_IsAllNaN_" data-uid="Hi.Geom.Vec3d.IsAllNaN*"></a>

  <h3 id="Hi_Geom_Vec3d_IsAllNaN" data-uid="Hi.Geom.Vec3d.IsAllNaN">
  IsAllNaN
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public bool IsAllNaN { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>is x,y,z all <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.nan">NaN</a>.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_IsAllNegativeInfinity_" data-uid="Hi.Geom.Vec3d.IsAllNegativeInfinity*"></a>

  <h3 id="Hi_Geom_Vec3d_IsAllNegativeInfinity" data-uid="Hi.Geom.Vec3d.IsAllNegativeInfinity">
  IsAllNegativeInfinity
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public bool IsAllNegativeInfinity { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>is x,y,z all <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.negativeinfinity">NegativeInfinity</a>.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_IsAllPositiveInfinity_" data-uid="Hi.Geom.Vec3d.IsAllPositiveInfinity*"></a>

  <h3 id="Hi_Geom_Vec3d_IsAllPositiveInfinity" data-uid="Hi.Geom.Vec3d.IsAllPositiveInfinity">
  IsAllPositiveInfinity
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public bool IsAllPositiveInfinity { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>is x,y,z all <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.positiveinfinity">PositiveInfinity</a>.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_IsAnyFinite_" data-uid="Hi.Geom.Vec3d.IsAnyFinite*"></a>

  <h3 id="Hi_Geom_Vec3d_IsAnyFinite" data-uid="Hi.Geom.Vec3d.IsAnyFinite">
  IsAnyFinite
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public bool IsAnyFinite { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>Is at least one of x,y,z finite.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_IsAnyNaN_" data-uid="Hi.Geom.Vec3d.IsAnyNaN*"></a>

  <h3 id="Hi_Geom_Vec3d_IsAnyNaN" data-uid="Hi.Geom.Vec3d.IsAnyNaN">
  IsAnyNaN
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public bool IsAnyNaN { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>Is any of {x,y,z} <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.nan">NaN</a>.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_IsZero_" data-uid="Hi.Geom.Vec3d.IsZero*"></a>

  <h3 id="Hi_Geom_Vec3d_IsZero" data-uid="Hi.Geom.Vec3d.IsZero">
  IsZero
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public bool IsZero { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>Is zero vector.
Which is <code>x == 0 &amp;&amp; y == 0 &amp;&amp; z == 0</code>.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_Item_" data-uid="Hi.Geom.Vec3d.Item*"></a>

  <h3 id="Hi_Geom_Vec3d_Item_System_Int32_" data-uid="Hi.Geom.Vec3d.Item(System.Int32)">
  this[int]
  
  </h3>

  <div class="markdown level1 summary"><p>Gets or sets the element at the specified index.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double this[int dir] { get; set; }</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd></dd>
  </dl>




  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>The element at the specified index.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_Length_" data-uid="Hi.Geom.Vec3d.Length*"></a>

  <h3 id="Hi_Geom_Vec3d_Length" data-uid="Hi.Geom.Vec3d.Length">
  Length
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public double Length { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Geometry length of this.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_LengthSquare_" data-uid="Hi.Geom.Vec3d.LengthSquare*"></a>

  <h3 id="Hi_Geom_Vec3d_LengthSquare" data-uid="Hi.Geom.Vec3d.LengthSquare">
  LengthSquare
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public double LengthSquare { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Geometry length ^ 2.
Which is <code>x * x + y * y + z * z</code>.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_MaxAbsDir_" data-uid="Hi.Geom.Vec3d.MaxAbsDir*"></a>

  <h3 id="Hi_Geom_Vec3d_MaxAbsDir" data-uid="Hi.Geom.Vec3d.MaxAbsDir">
  MaxAbsDir
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public int MaxAbsDir { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Get the direction index with maximum absolute value.
If the absolute of {x,y,z} is the biggest, return {0,1,2}.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_MaxDir_" data-uid="Hi.Geom.Vec3d.MaxDir*"></a>

  <h3 id="Hi_Geom_Vec3d_MaxDir" data-uid="Hi.Geom.Vec3d.MaxDir">
  MaxDir
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public int MaxDir { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Get the direction index with maximum value.
If {x,y,z} is the biggest, return {0,1,2}.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_MaxValue_" data-uid="Hi.Geom.Vec3d.MaxValue*"></a>

  <h3 id="Hi_Geom_Vec3d_MaxValue" data-uid="Hi.Geom.Vec3d.MaxValue">
  MaxValue
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public double MaxValue { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>The max value selected from {x,y,z}.
Which is <code>Math.Max(Math.Max(x, y), z)</code>.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_MinDir_" data-uid="Hi.Geom.Vec3d.MinDir*"></a>

  <h3 id="Hi_Geom_Vec3d_MinDir" data-uid="Hi.Geom.Vec3d.MinDir">
  MinDir
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public int MinDir { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Get the direction index with maximum value.
If {x,y,z} is the biggest, return {0,1,2}.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_MinValue_" data-uid="Hi.Geom.Vec3d.MinValue*"></a>

  <h3 id="Hi_Geom_Vec3d_MinValue" data-uid="Hi.Geom.Vec3d.MinValue">
  MinValue
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public double MinValue { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>The min value selected from {x,y,z}.
Which is <code>Math.Min(Math.Min(x, y), z)</code>.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_NaN_" data-uid="Hi.Geom.Vec3d.NaN*"></a>

  <h3 id="Hi_Geom_Vec3d_NaN" data-uid="Hi.Geom.Vec3d.NaN">
  NaN
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d NaN { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Generate <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>(double.NaN, double.NaN, double.NaN).</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_NativeByteSize_" data-uid="Hi.Geom.Vec3d.NativeByteSize*"></a>

  <h3 id="Hi_Geom_Vec3d_NativeByteSize" data-uid="Hi.Geom.Vec3d.NativeByteSize">
  NativeByteSize
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int NativeByteSize { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Byte size: sizeof(double) * 3.</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_NegativeInfinity_" data-uid="Hi.Geom.Vec3d.NegativeInfinity*"></a>

  <h3 id="Hi_Geom_Vec3d_NegativeInfinity" data-uid="Hi.Geom.Vec3d.NegativeInfinity">
  NegativeInfinity
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d NegativeInfinity { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Generate <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>(double.NegativeInfinity, double.NegativeInfinity, double.NegativeInfinity)</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_PositiveInfinity_" data-uid="Hi.Geom.Vec3d.PositiveInfinity*"></a>

  <h3 id="Hi_Geom_Vec3d_PositiveInfinity" data-uid="Hi.Geom.Vec3d.PositiveInfinity">
  PositiveInfinity
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d PositiveInfinity { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Generate <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>(double.PositiveInfinity, double.PositiveInfinity, double.PositiveInfinity)</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_Rank_" data-uid="Hi.Geom.Vec3d.Rank*"></a>

  <h3 id="Hi_Geom_Vec3d_Rank" data-uid="Hi.Geom.Vec3d.Rank">
  Rank
  
  </h3>

  <div class="markdown level1 summary"><p>Dimension (i.e. Size) of the Vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int Rank { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_Text_" data-uid="Hi.Geom.Vec3d.Text*"></a>

  <h3 id="Hi_Geom_Vec3d_Text" data-uid="Hi.Geom.Vec3d.Text">
  Text
  
  </h3>

  <div class="markdown level1 summary"><p>Gets or sets the vector as a string representation.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public string Text { get; set; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_UnitX_" data-uid="Hi.Geom.Vec3d.UnitX*"></a>

  <h3 id="Hi_Geom_Vec3d_UnitX" data-uid="Hi.Geom.Vec3d.UnitX">
  UnitX
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d UnitX { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Generate <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>(1, 0, 0).</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_UnitY_" data-uid="Hi.Geom.Vec3d.UnitY*"></a>

  <h3 id="Hi_Geom_Vec3d_UnitY" data-uid="Hi.Geom.Vec3d.UnitY">
  UnitY
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d UnitY { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Generate <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>(0, 1, 0).</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_UnitZ_" data-uid="Hi.Geom.Vec3d.UnitZ*"></a>

  <h3 id="Hi_Geom_Vec3d_UnitZ" data-uid="Hi.Geom.Vec3d.UnitZ">
  UnitZ
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d UnitZ { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Generate <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>(0, 0, 1).</p>
</dd>
  </dl>








  <a id="Hi_Geom_Vec3d_X_" data-uid="Hi.Geom.Vec3d.X*"></a>

  <h3 id="Hi_Geom_Vec3d_X" data-uid="Hi.Geom.Vec3d.X">
  X
  
  </h3>

  <div class="markdown level1 summary"><p>Value at x direction.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonElement]
public double X { get; set; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_XY_" data-uid="Hi.Geom.Vec3d.XY*"></a>

  <h3 id="Hi_Geom_Vec3d_XY" data-uid="Hi.Geom.Vec3d.XY">
  XY
  
  </h3>

  <div class="markdown level1 summary"><p><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a> of <a class="xref" href="Hi.Geom.Vec3d.html#Hi_Geom_Vec3d_X">X</a> and <a class="xref" href="Hi.Geom.Vec3d.html#Hi_Geom_Vec3d_Y">Y</a>.
The getter gets a copied object.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonIgnore]
public Vec2d XY { get; set; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_Y_" data-uid="Hi.Geom.Vec3d.Y*"></a>

  <h3 id="Hi_Geom_Vec3d_Y" data-uid="Hi.Geom.Vec3d.Y">
  Y
  
  </h3>

  <div class="markdown level1 summary"><p>Value at y direction.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonElement]
public double Y { get; set; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_Z_" data-uid="Hi.Geom.Vec3d.Z*"></a>

  <h3 id="Hi_Geom_Vec3d_Z" data-uid="Hi.Geom.Vec3d.Z">
  Z
  
  </h3>

  <div class="markdown level1 summary"><p>Value at z direction.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[BsonElement]
public double Z { get; set; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Vec3d_Zero_" data-uid="Hi.Geom.Vec3d.Zero*"></a>

  <h3 id="Hi_Geom_Vec3d_Zero" data-uid="Hi.Geom.Vec3d.Zero">
  Zero
  
  </h3>

  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d Zero { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Generate <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a>(0, 0, 0).</p>
</dd>
  </dl>








  <h2 class="section" id="methods">Methods
</h2>


  <a id="Hi_Geom_Vec3d_All_" data-uid="Hi.Geom.Vec3d.All*"></a>

  <h3 id="Hi_Geom_Vec3d_All_System_Double_" data-uid="Hi.Geom.Vec3d.All(System.Double)">
  All(double)
  
  </h3>

  <div class="markdown level1 summary"><p>Creates a vector with all components set to the specified value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d All(double v)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Value to set for all components</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>A new vector with all components set to the specified value</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_At_" data-uid="Hi.Geom.Vec3d.At*"></a>

  <h3 id="Hi_Geom_Vec3d_At_System_Int32_" data-uid="Hi.Geom.Vec3d.At(System.Int32)">
  At(int)
  
  </h3>

  <div class="markdown level1 summary"><p>Get the value at the dirction. Direction 0,1,2 are x,y,z.
If direction index is larger than 2, the return value is at z direction.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public ref double At(int dir)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>direction index</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>value at the direction</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_BilinearInterpolate_" data-uid="Hi.Geom.Vec3d.BilinearInterpolate*"></a>

  <h3 id="Hi_Geom_Vec3d_BilinearInterpolate_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_Hi_Geom_Vec3d_System_Double_System_Double_" data-uid="Hi.Geom.Vec3d.BilinearInterpolate(Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d,Hi.Geom.Vec3d,System.Double,System.Double)">
  BilinearInterpolate(Vec3d, Vec3d, Vec3d, Vec3d, double, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Performs bilinear interpolation between four points.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d BilinearInterpolate(Vec3d p00, Vec3d p01, Vec3d p10, Vec3d p11, double u, double v)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>p00</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Point at (0,0)</p>
</dd>
    <dt><code>p01</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Point at (0,1)</p>
</dd>
    <dt><code>p10</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Point at (1,0)</p>
</dd>
    <dt><code>p11</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Point at (1,1)</p>
</dd>
    <dt><code>u</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Interpolation parameter in first dimension (0.0 to 1.0)</p>
</dd>
    <dt><code>v</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Interpolation parameter in second dimension (0.0 to 1.0)</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The interpolated point</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Cross_" data-uid="Hi.Geom.Vec3d.Cross*"></a>

  <h3 id="Hi_Geom_Vec3d_Cross_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.Cross(Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
  Cross(Vec3d, Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get a cross b.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d Cross(Vec3d a, Vec3d b)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>a</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>a</p>
</dd>
    <dt><code>b</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>b</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>a x b</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Dot_" data-uid="Hi.Geom.Vec3d.Dot*"></a>

  <h3 id="Hi_Geom_Vec3d_Dot_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.Dot(Hi.Geom.Vec3d)">
  Dot(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>this dot src.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double Dot(Vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>dotted value</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Enumerate_" data-uid="Hi.Geom.Vec3d.Enumerate*"></a>

  <h3 id="Hi_Geom_Vec3d_Enumerate" data-uid="Hi.Geom.Vec3d.Enumerate">
  Enumerate()
  
  </h3>

  <div class="markdown level1 summary"><p>Enumerates the components of the vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IEnumerable&lt;double&gt; Enumerate()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>An enumerable sequence of the vector's components (X, Y, Z)</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Equals_" data-uid="Hi.Geom.Vec3d.Equals*"></a>

  <h3 id="Hi_Geom_Vec3d_Equals_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.Equals(Hi.Geom.Vec3d)">
  Equals(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Equals(Vec3d other)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>other</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>An object to compare with this object.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the current object is equal to the <code class="paramref">other</code> parameter; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Equals_" data-uid="Hi.Geom.Vec3d.Equals*"></a>

  <h3 id="Hi_Geom_Vec3d_Equals_Hi_Geom_Vec3d_System_Double_" data-uid="Hi.Geom.Vec3d.Equals(Hi.Geom.Vec3d,System.Double)">
  Equals(Vec3d, double)
  
  </h3>

  <div class="markdown level1 summary"><p>check equals for each component with tolerance.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Equals(Vec3d other, double toleranceForEachComponent)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>other</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>other vec</p>
</dd>
    <dt><code>toleranceForEachComponent</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>tolerance for each component</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>check equals for each component with tolerance.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Equals_" data-uid="Hi.Geom.Vec3d.Equals*"></a>

  <h3 id="Hi_Geom_Vec3d_Equals_System_Object_" data-uid="Hi.Geom.Vec3d.Equals(System.Object)">
  Equals(object)
  
  </h3>

  <div class="markdown level1 summary"><p>Determines whether the specified object is equal to the current object.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override bool Equals(object obj)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>obj</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
    <dd><p>The object to compare with the current object.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the specified object  is equal to the current object; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ExpandMax_" data-uid="Hi.Geom.Vec3d.ExpandMax*"></a>

  <h3 id="Hi_Geom_Vec3d_ExpandMax_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.ExpandMax(Hi.Geom.Vec3d)">
  ExpandMax(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Find and expand maximum values from src.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void ExpandMax(Vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d_ExpandMin_" data-uid="Hi.Geom.Vec3d.ExpandMin*"></a>

  <h3 id="Hi_Geom_Vec3d_ExpandMin_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.ExpandMin(Hi.Geom.Vec3d)">
  ExpandMin(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Find and expand minimum values from src.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void ExpandMin(Vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d_ExpandToBox3d_" data-uid="Hi.Geom.Vec3d.ExpandToBox3d*"></a>

  <h3 id="Hi_Geom_Vec3d_ExpandToBox3d_Hi_Geom_Box3d_" data-uid="Hi.Geom.Vec3d.ExpandToBox3d(Hi.Geom.Box3d)">
  ExpandToBox3d(Box3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Expands the destination box.
This function is usually used to compute the bounding box of elements.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void ExpandToBox3d(Box3d dst)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dst</code> <a class="xref" href="Hi.Geom.Box3d.html">Box3d</a></dt>
    <dd><p>Destination box</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d_GetCosSquareWith_" data-uid="Hi.Geom.Vec3d.GetCosSquareWith*"></a>

  <h3 id="Hi_Geom_Vec3d_GetCosSquareWith_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.GetCosSquareWith(Hi.Geom.Vec3d)">
  GetCosSquareWith(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get Cos(theta)^2. theta is the angle between this and <code class="paramref">src</code>.
This function is faster than <a class="xref" href="Hi.Geom.Vec3d.html#Hi_Geom_Vec3d_GetCosWith_Hi_Geom_Vec3d_">GetCosWith(Vec3d)</a> since it lacks one square root operation.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double GetCosSquareWith(Vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>one of edge vector</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Cos(theta)^2</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetCosWith_" data-uid="Hi.Geom.Vec3d.GetCosWith*"></a>

  <h3 id="Hi_Geom_Vec3d_GetCosWith_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.GetCosWith(Hi.Geom.Vec3d)">
  GetCosWith(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get Cos(theta). theta is the angle between this and <code class="paramref">v</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double GetCosWith(Vec3d v)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>a vector</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Cos(theta)</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetCross_" data-uid="Hi.Geom.Vec3d.GetCross*"></a>

  <h3 id="Hi_Geom_Vec3d_GetCross_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.GetCross(Hi.Geom.Vec3d)">
  GetCross(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get <code>this</code> cross <code class="paramref">src</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetCross(Vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetCsvText_" data-uid="Hi.Geom.Vec3d.GetCsvText*"></a>

  <h3 id="Hi_Geom_Vec3d_GetCsvText_System_String_" data-uid="Hi.Geom.Vec3d.GetCsvText(System.String)">
  GetCsvText(string)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets the CSV text representation of this vector with the specified format.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string GetCsvText(string format)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>Format string for the double values</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>CSV formatted string</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetEachValueAbs_" data-uid="Hi.Geom.Vec3d.GetEachValueAbs*"></a>

  <h3 id="Hi_Geom_Vec3d_GetEachValueAbs" data-uid="Hi.Geom.Vec3d.GetEachValueAbs">
  GetEachValueAbs()
  
  </h3>

  <div class="markdown level1 summary"><p>Creates a new vector with the absolute value of each component.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetEachValueAbs()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>A new vector with absolute values of each component</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetHashCode_" data-uid="Hi.Geom.Vec3d.GetHashCode*"></a>

  <h3 id="Hi_Geom_Vec3d_GetHashCode" data-uid="Hi.Geom.Vec3d.GetHashCode">
  GetHashCode()
  
  </h3>

  <div class="markdown level1 summary"><p>Serves as the default hash function.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override int GetHashCode()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>A hash code for the current object.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetMulEach_" data-uid="Hi.Geom.Vec3d.GetMulEach*"></a>

  <h3 id="Hi_Geom_Vec3d_GetMulEach_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.GetMulEach(Hi.Geom.Vec3d)">
  GetMulEach(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Creates a new vector by multiplying each component of this vector with the corresponding component of another vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetMulEach(Vec3d vec)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>vec</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The vector to multiply with</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>A new vector with component-wise multiplication results</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetMulWithoutTrans_" data-uid="Hi.Geom.Vec3d.GetMulWithoutTrans*"></a>

  <h3 id="Hi_Geom_Vec3d_GetMulWithoutTrans_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Vec3d.GetMulWithoutTrans(Hi.Geom.Mat4d)">
  GetMulWithoutTrans(Mat4d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get a new object by this*<code class="paramref">mat</code> without translation part.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetMulWithoutTrans(Mat4d mat)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>mat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
    <dd><p>transform matrix</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p><code>new Vec3d(x * mat.At(0, 0) + y * mat.At(1, 0) + z * mat.At(2, 0)
, x* mat.At(0, 1) + y* mat.At(1, 1) + z* mat.At(2, 1)
, x* mat.At(0, 2) + y* mat.At(1, 2) + z* mat.At(2, 2))</code></p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetNormalized_" data-uid="Hi.Geom.Vec3d.GetNormalized*"></a>

  <h3 id="Hi_Geom_Vec3d_GetNormalized" data-uid="Hi.Geom.Vec3d.GetNormalized">
  GetNormalized()
  
  </h3>

  <div class="markdown level1 summary"><p>Generate normalized vec.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetNormalized()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Normalized vec</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetRadian_" data-uid="Hi.Geom.Vec3d.GetRadian*"></a>

  <h3 id="Hi_Geom_Vec3d_GetRadian_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.GetRadian(Hi.Geom.Vec3d)">
  GetRadian(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get angle between this and <code class="paramref">v</code>.
The angle has no sign.
This vector is not required to be an unit vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double GetRadian(Vec3d v)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>one of the edge vector. Not required to be an unit vector.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Angle in radian</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetRadian_" data-uid="Hi.Geom.Vec3d.GetRadian*"></a>

  <h3 id="Hi_Geom_Vec3d_GetRadian_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.GetRadian(Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
  GetRadian(Vec3d, Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get angle between this and <code class="paramref">v</code>.
This function applies normal vector to determine the sign of angle.
This vector is not required to be an unit vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double GetRadian(Vec3d v, Vec3d n)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>vector of ending edge. Not required to be an unit vector.</p>
</dd>
    <dt><code>n</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>normal vector. Not required to be an unit vector.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>angle in radian</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetRadianByUnitVector_" data-uid="Hi.Geom.Vec3d.GetRadianByUnitVector*"></a>

  <h3 id="Hi_Geom_Vec3d_GetRadianByUnitVector_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.GetRadianByUnitVector(Hi.Geom.Vec3d)">
  GetRadianByUnitVector(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get angle between this and <code class="paramref">v</code>.
The angle has no sign.
This vector is not required to be an unit vector.
Both this and <code class="paramref">v</code> should be unit vector.
Much efficient than <a class="xref" href="Hi.Geom.Vec3d.html#Hi_Geom_Vec3d_GetRadian_Hi_Geom_Vec3d_">GetRadian(Vec3d)</a>.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double GetRadianByUnitVector(Vec3d v)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>v</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>one of the edge vector. Not required to be an unit vector.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Angle in radian</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetTransform_" data-uid="Hi.Geom.Vec3d.GetTransform*"></a>

  <h3 id="Hi_Geom_Vec3d_GetTransform_System_Func_System_Double_System_Double__" data-uid="Hi.Geom.Vec3d.GetTransform(System.Func{System.Double,System.Double})">
  GetTransform(Func&lt;double, double&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>Get the new <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a> by transforming each element by the function.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetTransform(Func&lt;double, double&gt; transformingFunc)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>transformingFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetVec2dByPlaneDir_" data-uid="Hi.Geom.Vec3d.GetVec2dByPlaneDir*"></a>

  <h3 id="Hi_Geom_Vec3d_GetVec2dByPlaneDir_System_Int32_" data-uid="Hi.Geom.Vec3d.GetVec2dByPlaneDir(System.Int32)">
  GetVec2dByPlaneDir(int)
  
  </h3>

  <div class="markdown level1 summary"><p>Gets a 2D vector by projecting the 3D vector onto a plane.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec2d GetVec2dByPlaneDir(int dir)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Direction index: 0 for YZ plane, 1 for ZX plane, 2 for XY plane</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec2d.html">Vec2d</a></dt>
    <dd><p>A 2D vector representing the projection</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetXRotation_" data-uid="Hi.Geom.Vec3d.GetXRotation*"></a>

  <h3 id="Hi_Geom_Vec3d_GetXRotation_System_Double_" data-uid="Hi.Geom.Vec3d.GetXRotation(System.Double)">
  GetXRotation(double)
  
  </h3>

  <div class="markdown level1 summary"><p>Get rotated <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a> along x direction. CCW.
Much efficient than using <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a> multiplication.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetXRotation(double rad)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>rad</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>rotation radian</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>rotated <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetYRotation_" data-uid="Hi.Geom.Vec3d.GetYRotation*"></a>

  <h3 id="Hi_Geom_Vec3d_GetYRotation_System_Double_" data-uid="Hi.Geom.Vec3d.GetYRotation(System.Double)">
  GetYRotation(double)
  
  </h3>

  <div class="markdown level1 summary"><p>Get rotated <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a> along y direction. CCW.
Much efficient than using <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a> multiplication.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetYRotation(double rad)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>rad</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>rotation radian</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>rotated <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_GetZRotation_" data-uid="Hi.Geom.Vec3d.GetZRotation*"></a>

  <h3 id="Hi_Geom_Vec3d_GetZRotation_System_Double_" data-uid="Hi.Geom.Vec3d.GetZRotation(System.Double)">
  GetZRotation(double)
  
  </h3>

  <div class="markdown level1 summary"><p>Get rotated <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a> along z direction. CCW.
Much efficient than using <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a> multiplication.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d GetZRotation(double rad)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>rad</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>rotation radian</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>rotated <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Interpolate_" data-uid="Hi.Geom.Vec3d.Interpolate*"></a>

  <h3 id="Hi_Geom_Vec3d_Interpolate_Hi_Geom_Vec3d_Hi_Geom_Vec3d_System_Double_" data-uid="Hi.Geom.Vec3d.Interpolate(Hi.Geom.Vec3d,Hi.Geom.Vec3d,System.Double)">
  Interpolate(Vec3d, Vec3d, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Interpolate from a to b with ratio alpha:(1-alpha).</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d Interpolate(Vec3d a, Vec3d b, double alpha)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>a</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>a</p>
</dd>
    <dt><code>b</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>b</p>
</dd>
    <dt><code>alpha</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>ratio</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>a * (1 - alpha) + b * alpha</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_IsNormalized_" data-uid="Hi.Geom.Vec3d.IsNormalized*"></a>

  <h3 id="Hi_Geom_Vec3d_IsNormalized_System_Double_" data-uid="Hi.Geom.Vec3d.IsNormalized(System.Double)">
  IsNormalized(double)
  
  </h3>

  <div class="markdown level1 summary"><p>Checks if the vector is normalized (has a length of approximately 1).</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool IsNormalized(double toleranceSquare = 1E-07)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>toleranceSquare</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Square of the tolerance value for comparing with 1 (default: 1e-7)</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if the vector is normalized within the specified tolerance</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_MulEach_" data-uid="Hi.Geom.Vec3d.MulEach*"></a>

  <h3 id="Hi_Geom_Vec3d_MulEach_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.MulEach(Hi.Geom.Vec3d)">
  MulEach(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Multiplies each component of this vector with the corresponding component of another vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d MulEach(Vec3d vec)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>vec</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>The vector to multiply with</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>This vector after multiplication</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_MulWithoutTrans_" data-uid="Hi.Geom.Vec3d.MulWithoutTrans*"></a>

  <h3 id="Hi_Geom_Vec3d_MulWithoutTrans_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Vec3d.MulWithoutTrans(Hi.Geom.Mat4d)">
  MulWithoutTrans(Mat4d)
  
  </h3>

  <div class="markdown level1 summary"><p>this*=<code class="paramref">mat</code> without translation part.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d MulWithoutTrans(Mat4d mat)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>mat</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
    <dd><p>transformation matrix</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>









  <dl class="typelist seealso">
    <dt>See Also</dt>
    <dd>
    <div><a class="xref" href="Hi.Geom.Vec3d.html#Hi_Geom_Vec3d_GetMulWithoutTrans_Hi_Geom_Mat4d_">GetMulWithoutTrans(Mat4d)</a></div>
    </dd>
  </dl>


  <a id="Hi_Geom_Vec3d_Normalize_" data-uid="Hi.Geom.Vec3d.Normalize*"></a>

  <h3 id="Hi_Geom_Vec3d_Normalize" data-uid="Hi.Geom.Vec3d.Normalize">
  Normalize()
  
  </h3>

  <div class="markdown level1 summary"><p>Normalize this.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Normalize()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Parse_" data-uid="Hi.Geom.Vec3d.Parse*"></a>

  <h3 id="Hi_Geom_Vec3d_Parse_System_String_" data-uid="Hi.Geom.Vec3d.Parse(System.String)">
  Parse(string)
  
  </h3>

  <div class="markdown level1 summary"><p>If src is not null and not empty string, return <a class="xref" href="Hi.Geom.Vec3d.html#Hi_Geom_Vec3d__ctor_System_String_">Vec3d(string)</a>; otherwise return null.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d Parse(string src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>src</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>parsed <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ParseByCsv_" data-uid="Hi.Geom.Vec3d.ParseByCsv*"></a>

  <h3 id="Hi_Geom_Vec3d_ParseByCsv_System_String_" data-uid="Hi.Geom.Vec3d.ParseByCsv(System.String)">
  ParseByCsv(string)
  
  </h3>

  <div class="markdown level1 summary"><p>Parses a vector from a CSV text string.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d ParseByCsv(string csvText)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>csvText</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>CSV formatted string containing vector components</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>A new vector parsed from the CSV text</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ReadBin_" data-uid="Hi.Geom.Vec3d.ReadBin*"></a>

  <h3 id="Hi_Geom_Vec3d_ReadBin_System_IO_BinaryReader_" data-uid="Hi.Geom.Vec3d.ReadBin(System.IO.BinaryReader)">
  ReadBin(BinaryReader)
  
  </h3>

  <div class="markdown level1 summary"><p>Reads binary data to initialize the object.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void ReadBin(BinaryReader reader)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>reader</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binaryreader">BinaryReader</a></dt>
    <dd><p>The binary reader to read from</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d_Set_" data-uid="Hi.Geom.Vec3d.Set*"></a>

  <h3 id="Hi_Geom_Vec3d_Set_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.Set(Hi.Geom.Vec3d)">
  Set(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Set values by copy.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Set(Vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Set_" data-uid="Hi.Geom.Vec3d.Set*"></a>

  <h3 id="Hi_Geom_Vec3d_Set_Hi_Native_vec3d_" data-uid="Hi.Geom.Vec3d.Set(Hi.Native.vec3d)">
  Set(vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Set values by copy.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Set(vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Native.vec3d.html">vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Set_" data-uid="Hi.Geom.Vec3d.Set*"></a>

  <h3 id="Hi_Geom_Vec3d_Set_System_Double_System_Double_System_Double_" data-uid="Hi.Geom.Vec3d.Set(System.Double,System.Double,System.Double)">
  Set(double, double, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Set values.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Set(double x, double y, double z)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>x</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>x</p>
</dd>
    <dt><code>y</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>y</p>
</dd>
    <dt><code>z</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>z</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Set_" data-uid="Hi.Geom.Vec3d.Set*"></a>

  <h3 id="Hi_Geom_Vec3d_Set_System_Double___" data-uid="Hi.Geom.Vec3d.Set(System.Double[])">
  Set(double[])
  
  </h3>

  <div class="markdown level1 summary"><p>Set values by array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Set(double[] xyz)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>xyz</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>double[]{x,y,z}</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Set_" data-uid="Hi.Geom.Vec3d.Set*"></a>

  <h3 id="Hi_Geom_Vec3d_Set_System_Func_System_Int32_System_Double_System_Double__" data-uid="Hi.Geom.Vec3d.Set(System.Func{System.Int32,System.Double,System.Double})">
  Set(Func&lt;int, double, double&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>Sets vector components using a function that maps direction index and current value to new value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Set(Func&lt;int, double, double&gt; dirToValueFunc)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dirToValueFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>Function that takes direction index (0=X, 1=Y, 2=Z) and current value, and returns the new value</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>This vector after modification</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Set_" data-uid="Hi.Geom.Vec3d.Set*"></a>

  <h3 id="Hi_Geom_Vec3d_Set_System_Func_System_Int32_System_Double__" data-uid="Hi.Geom.Vec3d.Set(System.Func{System.Int32,System.Double})">
  Set(Func&lt;int, double&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>Sets vector components using a function that maps direction index to value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Set(Func&lt;int, double&gt; dirToValueFunc)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dirToValueFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>Function that takes direction index (0=X, 1=Y, 2=Z) and returns the corresponding value</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>This vector after modification</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Set_" data-uid="Hi.Geom.Vec3d.Set*"></a>

  <h3 id="Hi_Geom_Vec3d_Set_System_Int32_System_Double_System_Double_System_Double_" data-uid="Hi.Geom.Vec3d.Set(System.Int32,System.Double,System.Double,System.Double)">
  Set(int, double, double, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Set values by direction offset.
Direction 0,1,2 indicate x,y,z respectively.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Set(int dir, double a, double b, double c)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dir</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>direction offset</p>
</dd>
    <dt><code>a</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>value at direction (0+dir)%3</p>
</dd>
    <dt><code>b</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>value at direction (1+dir)%3</p>
</dd>
    <dt><code>c</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>value at direction (2+dir)%3</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_SetEachNanToZero_" data-uid="Hi.Geom.Vec3d.SetEachNanToZero*"></a>

  <h3 id="Hi_Geom_Vec3d_SetEachNanToZero" data-uid="Hi.Geom.Vec3d.SetEachNanToZero">
  SetEachNanToZero()
  
  </h3>

  <div class="markdown level1 summary"><p>Set <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.nan">NaN</a> to 0 for each value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d SetEachNanToZero()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_SetEachValueAbs_" data-uid="Hi.Geom.Vec3d.SetEachValueAbs*"></a>

  <h3 id="Hi_Geom_Vec3d_SetEachValueAbs" data-uid="Hi.Geom.Vec3d.SetEachValueAbs">
  SetEachValueAbs()
  
  </h3>

  <div class="markdown level1 summary"><p>Set each value to absolute.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d SetEachValueAbs()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>this</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ToArray_" data-uid="Hi.Geom.Vec3d.ToArray*"></a>

  <h3 id="Hi_Geom_Vec3d_ToArray" data-uid="Hi.Geom.Vec3d.ToArray">
  ToArray()
  
  </h3>

  <div class="markdown level1 summary"><p>return new double[] { x, y, z }</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double[] ToArray()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>{ x, y, z }</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ToBuf_" data-uid="Hi.Geom.Vec3d.ToBuf*"></a>

  <h3 id="Hi_Geom_Vec3d_ToBuf_System_Double___" data-uid="Hi.Geom.Vec3d.ToBuf(System.Double[])">
  ToBuf(double[])
  
  </h3>

  <div class="markdown level1 summary"><p>Set x,y,z to the dst array.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void ToBuf(double[] dst)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>dst</p>
</dd>
  </dl>












  <a id="Hi_Geom_Vec3d_ToBuf_" data-uid="Hi.Geom.Vec3d.ToBuf*"></a>

  <h3 id="Hi_Geom_Vec3d_ToBuf_System_Double___System_Int32__" data-uid="Hi.Geom.Vec3d.ToBuf(System.Double[],System.Int32@)">
  ToBuf(double[], ref int)
  
  </h3>

  <div class="markdown level1 summary"><p>Set x,y,z to the dst array from postion p and increase p by the pushed number.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int ToBuf(double[] dst, ref int p)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>dst</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>dst</p>
</dd>
    <dt><code>p</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>position from dst</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><ol start="3">
<li>Which is pushed number of double</li>
</ol>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ToString_" data-uid="Hi.Geom.Vec3d.ToString*"></a>

  <h3 id="Hi_Geom_Vec3d_ToString" data-uid="Hi.Geom.Vec3d.ToString">
  ToString()
  
  </h3>

  <div class="markdown level1 summary"><p>To representative string with format:(x,y,z).</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
  </div>


  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>Representative string</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ToString_" data-uid="Hi.Geom.Vec3d.ToString*"></a>

  <h3 id="Hi_Geom_Vec3d_ToString_System_String_" data-uid="Hi.Geom.Vec3d.ToString(System.String)">
  ToString(string)
  
  </h3>

  <div class="markdown level1 summary"><p>To string with format: (x,y,z)</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ToString(string format)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>format of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.tostring#system-double-tostring(system-string)">ToString(string)</a></p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>Representative string</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ToString_" data-uid="Hi.Geom.Vec3d.ToString*"></a>

  <h3 id="Hi_Geom_Vec3d_ToString_System_String_System_IFormatProvider_" data-uid="Hi.Geom.Vec3d.ToString(System.String,System.IFormatProvider)">
  ToString(string, IFormatProvider)
  
  </h3>

  <div class="markdown level1 summary"><p>Returns a string representation of the vector formatted according to the specified format.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ToString(string format, IFormatProvider formatProvider)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>The format to use for each component</p>
</dd>
    <dt><code>formatProvider</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a></dt>
    <dd><p>The format provider to use</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>A formatted string representation of the vector</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_ToString_" data-uid="Hi.Geom.Vec3d.ToString*"></a>

  <h3 id="Hi_Geom_Vec3d_ToString_System_String_System_Int32_" data-uid="Hi.Geom.Vec3d.ToString(System.String,System.Int32)">
  ToString(string, int)
  
  </h3>

  <div class="markdown level1 summary"><p>Converts the vector to a string with the specified format and left padding.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ToString(string format, int leftPadding)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>format</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>Format string for the double values</p>
</dd>
    <dt><code>leftPadding</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Number of characters to pad on the left of each value</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>Formatted string representation of the vector</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_Transform_" data-uid="Hi.Geom.Vec3d.Transform*"></a>

  <h3 id="Hi_Geom_Vec3d_Transform_System_Func_System_Double_System_Double__" data-uid="Hi.Geom.Vec3d.Transform(System.Func{System.Double,System.Double})">
  Transform(Func&lt;double, double&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>Transform each element by the function.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Vec3d Transform(Func&lt;double, double&gt; transformingFunc)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>transformingFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Geom_Vec3d_TryParse_" data-uid="Hi.Geom.Vec3d.TryParse*"></a>

  <h3 id="Hi_Geom_Vec3d_TryParse_System_String_Hi_Geom_Vec3d__" data-uid="Hi.Geom.Vec3d.TryParse(System.String,Hi.Geom.Vec3d@)">
  TryParse(string, out Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Attempts to parse a string into a Vec3d.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool TryParse(string src, out Vec3d dst)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
    <dd><p>The string to parse in format &ldquo;(x,y,z)&rdquo;</p>
</dd>
    <dt><code>dst</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>When this method returns, contains the Vec3d value if parsing succeeded, or null if parsing failed</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>true if parsing succeeded; otherwise, false</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_WriteBin_" data-uid="Hi.Geom.Vec3d.WriteBin*"></a>

  <h3 id="Hi_Geom_Vec3d_WriteBin_System_IO_BinaryWriter_" data-uid="Hi.Geom.Vec3d.WriteBin(System.IO.BinaryWriter)">
  WriteBin(BinaryWriter)
  
  </h3>

  <div class="markdown level1 summary"><p>Output to bytes:
writer.Write(x);
writer.Write(y);
writer.Write(z);</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void WriteBin(BinaryWriter writer)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>writer</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binarywriter">BinaryWriter</a></dt>
    <dd><p>writer</p>
</dd>
  </dl>












  <h2 class="section" id="operators">Operators
</h2>


  <a id="Hi_Geom_Vec3d_op_Addition_" data-uid="Hi.Geom.Vec3d.op_Addition*"></a>

  <h3 id="Hi_Geom_Vec3d_op_Addition_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.op_Addition(Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
  operator +(Vec3d, Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Plus.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d operator +(Vec3d left, Vec3d right)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>left</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>a</p>
</dd>
    <dt><code>right</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>b</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>new Vec3d(a.x + b.x, a.y + b.y, a.z + b.z)</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_op_Division_" data-uid="Hi.Geom.Vec3d.op_Division*"></a>

  <h3 id="Hi_Geom_Vec3d_op_Division_Hi_Geom_Vec3d_System_Double_" data-uid="Hi.Geom.Vec3d.op_Division(Hi.Geom.Vec3d,System.Double)">
  operator /(Vec3d, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Get a new object from <code class="paramref">a</code> scaled by 1/<code class="paramref">d</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d operator /(Vec3d a, double d)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>a</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd></dd>
    <dt><code>d</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd></dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd></dd>
  </dl>











  <a id="Hi_Geom_Vec3d_op_Equality_" data-uid="Hi.Geom.Vec3d.op_Equality*"></a>

  <h3 id="Hi_Geom_Vec3d_op_Equality_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.op_Equality(Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
  operator ==(Vec3d, Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Equality operator for comparing two Vec3d objects.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool operator ==(Vec3d left, Vec3d right)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>left</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Left operand</p>
</dd>
    <dt><code>right</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Right operand</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if the vectors are equal, false otherwise</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_op_Inequality_" data-uid="Hi.Geom.Vec3d.op_Inequality*"></a>

  <h3 id="Hi_Geom_Vec3d_op_Inequality_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.op_Inequality(Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
  operator !=(Vec3d, Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Inequality operator for comparing two Vec3d objects.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool operator !=(Vec3d left, Vec3d right)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>left</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Left operand</p>
</dd>
    <dt><code>right</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>Right operand</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
    <dd><p>True if the vectors are not equal, false otherwise</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_op_Multiply_" data-uid="Hi.Geom.Vec3d.op_Multiply*"></a>

  <h3 id="Hi_Geom_Vec3d_op_Multiply_Hi_Geom_Vec3d_Hi_Geom_Mat4d_" data-uid="Hi.Geom.Vec3d.op_Multiply(Hi.Geom.Vec3d,Hi.Geom.Mat4d)">
  operator *(Vec3d, Mat4d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get p*src.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d operator *(Vec3d p, Mat4d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>p</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>point</p>
</dd>
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Mat4d.html">Mat4d</a></dt>
    <dd><p>transmform matrix</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p><code>new Vec3d(p.x * src.At(0, 0) + p.y * src.At(1, 0) + p.z * src.At(2, 0) + src.At(3, 0)
, p.x* src.At(0, 1) + p.y* src.At(1, 1) + p.z* src.At(2, 1) + src.At(3, 1)
, p.x* src.At(0, 2) + p.y* src.At(1, 2) + p.z* src.At(2, 2) + src.At(3, 2))</code></p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_op_Multiply_" data-uid="Hi.Geom.Vec3d.op_Multiply*"></a>

  <h3 id="Hi_Geom_Vec3d_op_Multiply_Hi_Geom_Vec3d_System_Double_" data-uid="Hi.Geom.Vec3d.op_Multiply(Hi.Geom.Vec3d,System.Double)">
  operator *(Vec3d, double)
  
  </h3>

  <div class="markdown level1 summary"><p>Scale a by s.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d operator *(Vec3d a, double s)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>a</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>vector</p>
</dd>
    <dt><code>s</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>scale</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>new Vec3d(a.x * s, a.y * s, a.z * s)</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_op_Subtraction_" data-uid="Hi.Geom.Vec3d.op_Subtraction*"></a>

  <h3 id="Hi_Geom_Vec3d_op_Subtraction_Hi_Geom_Vec3d_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.op_Subtraction(Hi.Geom.Vec3d,Hi.Geom.Vec3d)">
  operator -(Vec3d, Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Minus.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d operator -(Vec3d a, Vec3d b)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>a</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>a</p>
</dd>
    <dt><code>b</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>b</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>new Vec3d(a.x - b.x, a.y - b.y, a.z - b.z)</p>
</dd>
  </dl>











  <a id="Hi_Geom_Vec3d_op_UnaryNegation_" data-uid="Hi.Geom.Vec3d.op_UnaryNegation*"></a>

  <h3 id="Hi_Geom_Vec3d_op_UnaryNegation_Hi_Geom_Vec3d_" data-uid="Hi.Geom.Vec3d.op_UnaryNegation(Hi.Geom.Vec3d)">
  operator -(Vec3d)
  
  </h3>

  <div class="markdown level1 summary"><p>Get negate vector.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Vec3d operator -(Vec3d src)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>src</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>src</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
    <dd><p>new Vec3d(-src.x, -src.y, -src.z)</p>
</dd>
  </dl>












</article>

        <div class="contribution d-print-none">
        </div>


      </div>

      <div class="affix">
        <nav id="affix"></nav>
      </div>
    </main>

    <div class="container-xxl search-results" id="search-results"></div>

    <footer class="border-top text-secondary">
      <div class="container-xxl">
        <div class="flex-fill">
          <span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
        </div>
      </div>
    </footer>
  </body>
</html>
